package com.ant.storage.mapper;

import com.ant.storage.pojo.PurchaseOrders;
import com.ant.storage.pojo.PurchaserRecord;
import com.ant.storage.vo.PurchaseDetailsVo;
import com.ant.storage.vo.PurchaseVo;
import com.ant.storage.vo.PurchaserRecordVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author melon
 * @since 2022-04-13
 */
public interface PurchaserRecordMapper extends BaseMapper<PurchaserRecord> {

    List<PurchaserRecordVo> getApplySettlement(Integer pageIndex, Integer pageSize, String supplierId, String nameId);

    List<PurchaseVo> getPurchaseRecordById(@Param("id") Integer id);

    List<PurchaseVo> getPurchaseRecordPlanById(@Param("id") Integer id);

    List<PurchaseDetailsVo> getPurchaseRecordByIds(Integer id);

    String selectLastID();

    List<PurchaseDetailsVo> getPurchaseRecordByIdes(@Param("id") Integer id);

    List<PurchaseDetailsVo> getPurchaserRecords(@Param("id")Integer id);

    List<PurchaseDetailsVo> getPurchaserRecordsInIds(@Param("ids")List<Integer> ids);

    List<PurchaseDetailsVo> getPurchaserRecordPlanned(Integer id);

    List<PurchaseDetailsVo> getPurchaseRecord(@Param("id")Integer id);
}
